package com.softer.chengxin.dicinfo.service;

import com.softer.chengxin.common.domin.CommonResult;
import com.softer.chengxin.common.domin.ManagerPageResult;
import com.softer.chengxin.common.domin.Page;
import com.softer.chengxin.dicinfo.entity.DicType;

/**
 * @author zcz
 * @date 2018/12/20
 */
public interface DicTypeService {
    /**
     * 查询列表
     * @param page
     * @param dicType
     * @return
     */
    ManagerPageResult getData(Page page,DicType dicType);

    /**
     * 新增
     * @param dicType
     * @return
     */
    CommonResult add (DicType dicType);

    /**
     * 修改
     * @param dicType
     * @return
     */
    CommonResult update(DicType dicType);
    /**
     * 根据id查询字典类型表
     * @param id
     * @return
     */
    DicType getDicTypeById(String id);
}
